from django.urls import path, include
from django.contrib import admin
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'purchase-receipts', views.PurchaseReceiptViewSet)
router.register(r'purchase-receipts-item', views.PurchaseReceiptDetailViewSet)
router.register(r'purchase-orders', views.PurchaseOrderViewSet)
router.register(r'purchase-orders-item', views.PurchaseOrderDetailViewSet)
router.register(r'purchase-returns', views.PurchaseReturnViewSet)
router.register(r'purchase-returns-item', views.PurchaseReturnDetailViewSet)

urlpatterns = [
    path('', include(router.urls)),
]
